//跨域代理前缀
const API_PROXY_PREFIX = '/pc'
const API_PROXY_PREFIX_B = '/base'
const BASE_URL =
  process.env.NODE_ENV === 'production'
    ? process.env.VUE_APP_API_BASE_URL
    : API_PROXY_PREFIX
const BASE_UPLOAD_URL =
  process.env.NODE_ENV === 'production'
    ? process.env.VUE_APP_API_BASE_UPLOAD_URL
    : API_PROXY_PREFIX_B
module.exports = {
  LOGIN: `${BASE_URL}/login`,
  BANNER_LIST: `${BASE_URL}/bannerList`,
  BANNER_EDIT: `${BASE_URL}/editBanner`,
  BANNER_DEL: `${BASE_URL}/delBanner`,
  MESSAGE_LIST: `${BASE_URL}/messageList`,
  MESSAGE_USER_LIST: `${BASE_URL}/messageUserList`,
  MESSAGE_UPDATE: `${BASE_URL}/messageUpdateState`,
  NEWS_LIST: `${BASE_URL}/newsList`,
  NEWS_EDIT: `${BASE_URL}/editNews`,
  NEWS_DEL: `${BASE_URL}/delNews`,
  USER_LIST: `${BASE_URL}/userList`,
  USER_EDIT: `${BASE_URL}/editUser`,
  USER_DEL: `${BASE_URL}/delUser`,
  DICT_LIST: `${BASE_URL}/dictList`,
  BASE_UPLOAD: `${BASE_UPLOAD_URL}/upload`,
  URL: BASE_UPLOAD_URL
}
